{#include file="top.php"#}

<div class="body">

    <div class="main fl">
        <div class="crumb">
            <a href="{#optimize_url('events', 'invite_list')#}">活動事件</a> &gt;<a href="{#optimize_url('events', 'invite_list')#}">{#$event.cname#}</a> &gt;
            <strong>{#$event.title#}</strong>
        </div>

        <div class="eibox nobd b_box">
            <div class="hd">
                <h2 class="ir ht"><span>活動邀請 EVENT INVITATION</span></h2>
            </div>
            <div class="bd">
                <div {#if $mtype==5#}class="areabox pro"{#else#}class="areabox try" {#/if#}>
                    <h2 class="at">{#if $mtype==5#}尊業體驗團{#else#}試用專區{#/if#}</h2>
                    <div class="lbox">
						<div class="imgbox"><p class="img_p"><span><img src="{#$event._photo_url#}"></span></p></div>

<!--<div class="ir gf"><span>工作坊</span></div>-->
                        <div class="ir {#if $event.event_type==1#}gf{#else#}act{#/if#}"><span>{#$event.cname#}</span></div>
                    </div>
                    <div class="rbox">
                        <a href="http://service.weibo.com/share/share.php?url={#$thisUrl#}&title={#$event.name#}-{#$event.cname#}-申請試用&pic={#$global_url#}{#$event._photo_url#}" class="ir fb_icon"  target=_blank><span>facebook</span></a>
                        <a href="http://www.facebook.com/sharer.php?u={#$thisUrl#}&t={#$event.name#}-{#$event.cname#}-申請試用"  class="ir sina_icon" target=_blank><span>sina</span></a>
                        <div class="tbox">
                            <table width="100%" border="0" cellpadding="0">
                                <tr>
                                    <td colspan="2">{#$event.brand_str#}</td>
                                </tr>
                                <tr>
                                    <td colspan="2" class="tt">{#$event.title#}</td>
                                </tr>
                                <tr>
                                <table width="100%" border="0" cellpadding="0">
                                    {#if !empty($event.event_date)#}
                                    <tr class="sep">
                                        <td class="label"><span>：</span>日期</td>
                                        <td>{#date('Y年m月d日',strtotime($event.event_date))#}</td>
                                    </tr>
                                    {#/if#}
                                    {#if !empty($event.event_time)#}
                                    <tr class="sep">
                                        <td class="label"><span>：</span>時間</td>
                                        <td>{#$event.event_time#}</td>
                                    </tr>
                                    {#/if#}
                                    {#if !empty($event.place)#}
                                    <tr class="sep">
                                        <td class="label"><span>：</span>地點</td>
                                        <td>{#$event.place#}</td>
                                    </tr>
                                    {#/if#}
                                    {#if !empty($event.intro)#}
                                    <tr class="sep">
                                        <td class="label"><span>：</span>簡介</td>
                                        <td>{#nl2br($event.intro)#}</td>
                                    </tr>
                                    {#/if#}
                                </table>
                                </tr>
                            </table>
                        </div>
                        <div class="infobox">
                            <span class="numbox">
                                <sup>名額</sup><span class="num">{#$event.quota#}</span>&nbsp;
                                <sup>申請人數</sup><span class="num">{#$event.apply_num#}</span>&nbsp;
                                <sup>人氣</sup><span class="num">{#$event.click#}</span>
                            </span>


                            {#if time() < strtotime($event.starttime)#}
                            <div class="text_coming_info"><strong class="text_coming"></strong></div>
                            {#else if empty($event._difTime.0)#}
                            <div class="text_over_info"><strong class="text_over"></strong> </div>
                            {#else#}
                            <div class="info"><span>尚餘</span><strong>{#$event._difTime.0#}</strong><sub>{#$dateArr[$event._difTime.1]#}</sub></div>
                            {#/if#}
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!--step
        <div class="stepbox">
            <div class="steps"><span>step1 成為體驗大人/試用專員,step2 成為體驗大人/試step3 成為體驗大人/試用專員用專員,</span></div>
        </div>-->
        <!--
{#if !empty($userlist1) && !empty($userlist2)#}
<div class="hybox">
<div class="tagbox clearfix">
<div class="t2 t curr" id=sl1 onmouseover='show_ul(1)' style="cursor:pointer"><em class="hack">&nbsp;</em><span class="ir txt txt1">邀請會員</span></div>

                        <div class="t2 t" id=sl2 onmouseover='show_ul(2)' style="cursor:pointer"><em class="hack">&nbsp;</em><span class="ir txt txt2"  >已申請會員</span></div>
</div>
<div class="imgs" id='userlist1'>
<div class="ul clearfix" >
<div class="listw"  id="intro_content" style="overflow:hidden;height:180px">
        {#foreach from=$userlist1 item=v key=k#}
        <span class="list">
            <span class="infobox">
                <span class="imgbox"><a href='person.php?uid={#$v.id#}' ><img src="{#$v.photo_l#}" width=56 /></a></span><br>
                <span class="intro">{#$v.username#}</span>
            </span>
        </span>
                                        {#/foreach#}

    <span class="list left_fix">&nbsp;</span>
</div>
</div>
                        <div class="bar" id="intros_scroll">

</div>
                </div>
                <div class="imgs" id='userlist2' style="display:none">
                        <div class="ul clearfix" >
<div class="listw" id="intro_content1" style="overflow:hidden;height:180px">
        {#foreach from=$userlist2 item=v key=k#}
        <span class="list">
            <span class="infobox">
                <span class="imgbox"><a href='person.php?uid={#$v.id#}' ><img src="{#$v.photo_l#}" width=56 /></a></span><br>
                <span class="intro">{#$v.username#}</span>
            </span>
        </span>
                                        {#/foreach#}

    <span class="list left_fix">&nbsp;</span>
</div>
</div>
<div class="bar" id="intros_scroll1">

</div>
</div>
                {#/if#}
        -->
        {#if !empty($userlist1)#}
        <div class="hybox">
            <div class="tagbox clearfix">
                <div class="t2 t curr" id=sl1 onmouseover='show_ul(1)' style="cursor:pointer"><em class="hack">&nbsp;</em><span class="ir txt txt1">邀請會員</span></div>
            </div>
            <div class="imgs" id='userlist1'>
                <div class="ul clearfix" >
                    <div class="listw"  id="intro_content" style="overflow:hidden;height:180px">
                        {#foreach from=$userlist1 item=v key=k#}
                        <span class="list">
                            <span class="infobox">
                                <span class="imgbox"><a href="{#optimize_url('person', 'report','username='|cat:$v.username)#}" ><img src="{#$v.photo_l#}" width=56 /></a></span><br>
                                <span class="intro">{#$v.username#}</span>
                            </span>
                        </span>
                        {#/foreach#}

                        <span class="list left_fix">&nbsp;</span>
                    </div>
                </div>
                <div class="bar" id="intros_scroll">

                </div>
            </div>
        </div>
        {#/if#}
        {#if !empty($reportlist)#}

        <div class="trbox b_box trbox_e">
            <div class="hd">
                <h2 class="ir ht"><span>活動申請 EVENT REGISTRATION</span></h2>
            </div>
            <div class="bd">

                {#foreach from=$reportlist item=v key=k#}
                <div class="iibox {#if ($k+1)%5==0#}last{#/if#}">
					<div class="imgbox"><p class="img_p"><a href="{#optimize_url('person', 'report','username='|cat:$v.username)#}"><span><img alt="" src="{#$v.photo_l#}"></span></a></p></div>
                    <div class="infobox">
                        <p>{#$v.username#}</p>
                        <p>年齡：{#$v.age#}</p>
                        <p>臉部膚質：{#$v.body_skin#}</p>
                        <p class="multi multi1">
                            <label class="lb">申請原因：</label>
                            <span>{#nl2br($v.body)#}</span>
                        </p>
                    </div>
                    <!--{#if $v.application_status==7 || $v.application_status==9#}<a class="passbtn" >通過</a>{#else#}<a class="processbtn">審核中</a>{#/if#}-->
                </div>
                {#/foreach#}
            </div>
        </div>

        {#$pagelist#}
        {#/if#}
    </div>


    <!-- main-->
    <div class="sidebar">
        {#show_block('b2',1,'','sidebar_ad')#}
        {#show_block('b1',2,'','sidebar_function')#}
        {#show_block('b3',0,'','sidebar_search')#}
        {#show_block('b13',0,'','sidebar_registation')#}
        {#show_block('b4',0,'','sidebar_workshop')#}
        {#show_block('b9',0,'','sidebar_tutorial b_box')#}
        {#show_block('b5',0,'','sidebar_top3 b_box')#}
        {#show_block('b6',0,'','sidebar_facebook')#}
    </div>
    <!-- sidebar -->

</div><!--body-->

<!--  遮罩層  -->
<div id="fullbg"></div>
<div  class="irpopbox popbox b_box" style="top:400px;z-index:60;display:none;" id="dialog">
    <div class="hd">
        <h2 class="ir ht" id=loginTextName><span id=loginText>iTRIAL 會員登入 REGISTRATION</span></h2>
        <a class="popclose" style="cursor:pointer" onclick="closeLB();">close</a>
    </div>
    <div class="bd">
        <div class="lbox">
            <p>會員名稱 USERNAME</p>
            <input type="text" class="ipt" name="email" id="email">
            <p>密碼 PASSWORD</p>
            <input type="password" class="ipt" name="password" id="password">
            <a class="btn_s btn_s_login" onclick="login()" style="cursor:pointer" id="login"><strong>login</strong></a>
            <ul>
                <li><a href="/member.php?action=forgetPassword">忘記密碼</a></li>
                <li><a href="/member.php?action=reg&toURL={#$thisUrl#}">註冊新帳號</a></li>
            </ul>
        </div>
        <div class="rbox">
            <div class="lgbox"><em class="hack"></em>
                <a class="fbtn ir" href="/member.php?action=login_facebook&toURL={#$thisUrl#}"><strong>以facebook登入</strong></a><span><a class="fb_link" href="/member.php?action=login_facebook&toURL={#$thisUrl#}">以facebook登入</a></span>
            </div>
            <div class="lgbox lgbox2" onClick="fnblogin()" id=login_type style="cursor:pointer" ><em class="hack"></em>
                <a class="fabtn ir" id=classlogo><strong>以F&amp;B登入</strong></a><span id=login_type_text  >以F&amp;B登入</span>
            </div>
        </div>
    </div>
</div>

<div style="top:400px;z-index:60;display:none;" class="apopbox popbox b_box" id="dialog_limits">
    <div class="hd">
        <h2 class="ir ht"><span>提示信息 ALERT</span></h2>
        <a class="popclose" onclick="closeLB();" style="cursor:pointer">close</a>            </div>
    <div class="bd">
        <p>你還未成為{#if $event.member_type==5#}體驗達人{#else#}試用專員{#/if#}，<a href="/member.php?action={#if $event.member_type==5#}regExpert{#else#}regTrial{#/if#}">立即申請</a>，享受更多待遇！</p>
        <a href="{#optimize_url('events', 'invite_list')#}" class="btn_b_more_fun btn_b"><strong>查看更多活動</strong></a>
    </div>
</div>


<script src="/js/jquery.event.drag.min.js"></script>
<script type="text/javascript">
    function show_ul(n){

        switch(n){
            case 1:
                $('#userlist1').show();
                $('#userlist2').hide();
                $("#sl1").attr("class","t1 t curr");
                $("#sl2").attr("class","t2 t");
                break;
            case 2:
                $('#userlist2').show();
                $('#userlist1').hide();
                $("#sl1").attr("class","t1 t ");
                $("#sl2").attr("class","t2 t curr");
                break;
            default:
                break;
        }
    }
</script>
<script>
    var is_apple=0;
    setTimeout( function(){$("#intro_content").fadeIn('normal',function(){
            bindSilder("intro_content", "intros_scroll");
        });}, ( 300 ) );
</script>
{#include file="footer.php"#}